<!DOCTYPE html>
<html lang="en">
<head>
   <include file="Public:header" />
    <title></title>
</head>
<body class="eee">
	 <include file="Public:head" />
    <div class="mb50 mt50">
    	<div class="hui-xq fff">
    		<dl>
    			<dt><a href="javascript:;"><img src="__Img__/<{$data.img}>"></a></dt>
    			<dd>
    				<h2><{$data.name}><a href="#this" data="<{$data.id}>" onClick="favorite(this)"><{$favorite_str}></a></h2>
    				<p><span>预约次数：<{$data.buytime}></span><span>打球时长：<{$data.longtime}>h</span></p>
					<p>营业时间：<{$data.business_hours}></p>
    			</dd>
    		</dl>
    		<p><{$data.desc}></p>
    	</div>
    	<div>
    		<div class="hui-xq-1"> 
    			<p id="choose_type">
	    			<a href="#this" attr="1" class="cur">个人预约</a>
	    			<a href="#this" attr="2">AA双人匹配</a>
	    			<a href="#this" attr="3">AA双人邀请</a>
    			</p>
    		</div>
    		<div class="hui-xq-s">
    			<div class="swiper-container" id="swiper-container1">
					<div class="swiper-wrapper">
					<volist name="week" id="vo">
						<div class="swiper-slide blue-slide">
							<div>
								<span><{$vo.week}></span>
								<i><if condition="$i eq 1">今天<else/><{$vo.day}></if></i>
								<a onClick="return jump(this)" href="<{:U('Index/book',array('store_id'=>$data['store_id'],'day'=>$vo['date']))}>">预定</a>
							</div>
						</div>
				  </volist> 
					</div>
				</div>
    		</div>
			<script>
			function jump(obj){
			 var url =$(obj).attr("href");
			 var type=$("#choose_type .cur").attr("attr");
			 url+="/type/"+type;
			// alert(url);
			 window.location.href=url;
			 return false;
			}
			</script>
            <!--hui-xq-s 日期滑动-->
            <div class="fff hui-xq-she">
            	<volist name="data['facilities']" id="vo">
				<dl>
            		<dt>
					<a onClick="previewImage(<{$key}>)" href="javascript:;"><img src="<{$vo['img']['0']}>"><i><{:count($vo['img'])}></i></a>
					</dt>
            		<dd>
            			<h3><i class="cg-icon cg-icon1"></i><{$vo.title}></h3>
            			<p><{$vo.info}></p>
            		</dd>
            	</dl>
            	 </volist> 
            	 
            </div>
            <div class="fff hui-xq-shu">
            	<ul>
            		<li >
            			<span><i class="cg-icon cg-icon4"></i>其他服务</span>
            			<p ><{$data.sevice}></p>
            		</li>
            		<li>
            			<span><i class="cg-icon cg-icon5"></i>卖品</span>
            			<p><{$data.seller}></p>
            		</li>
            		<li>
            			<span><i class="cg-icon cg-icon6"></i>发票</span>
            			<p><{$data.bill}></p>
            		</li>
            		<li>
            			<span><i class="cg-icon cg-icon7"></i>停车</span>
            			<p><{$data.part}></p>
            		</li>
            		<li>
            			<span><i class="cg-icon cg-icon8"></i>公交</span>
            			<p><{$data.bus}></p>
            		</li>
            		<li>
            			<span><i class="cg-icon cg-icon9"></i>地铁</span>
            			<p><{$data.subway}></p>
            		</li>
            	</ul>
            </div>
            <div class="fff hui-xq-di">
            	<ul>
            		<li><i class="cg-icon cg-icon10"></i><a href="tel:<{$data.phone}>"><{$data.phone}></a></li>
            		<li><i class="cg-icon cg-icon11"></i><a href="http://api.map.baidu.com/marker?location=<{$data.lat}>,<{$data.lng}>&title=<{$data.name}>&content=<{$data.address}>&output=html&src=lhg|lhgweb"><{$data.address}></a></li>
            	</ul>
            </div>
    	</div>
    </div>
	  <include file="Public:footer" />
	<link rel="stylesheet" href="__LHGCss__/swiper3.06.min.css" />
	<script src="__LHGJs__/swiper3.06.jquery.min.js"></script>
	<script>
	
	$(function(){
	 var mySwiper = new Swiper('#swiper-container1',{
			slidesPerView : 4,
			slidesPerGroup : 1,
		})
		$(".hui-xq-1 a").click(function(){
		 $(".hui-xq-1 a").removeClass("cur");
		  $(this).addClass("cur");
		})
	})

		
	</script>
	<php>Logic("BoxSns","Wechat")->wxJs()</php>
	
	<script>
	 var list=<{$facilities}>;
	 function previewImage(i){
		 wx.previewImage({
		  current: list[i]['img'][0],
		  urls: list[i]['img']
		});
	 }
	</script>
</body>
</html>